﻿using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Collections.Generic;

namespace MidimediaFinder
{
    public class ImageViewModel : INotifyPropertyChanged
    {
        private Uri ImageUri;

        public ImageViewModel()
            : base()
        {
            
        }
        

        /// <summary>
        /// Sample ViewModel property; this property is used in the view to display its value using a Binding.
        /// </summary>
        /// <returns></returns>
        public Uri _ImageUrl
        {
            get
            {
                return ImageUri;
            }
            set
            {
                if (value != ImageUri)
                {
                    ImageUri = value;
                    NotifyPropertyChanged("ImageUri");
                }
            }
        }

        

        public event PropertyChangedEventHandler PropertyChanged;
        private void NotifyPropertyChanged(String propertyName)
        {
            PropertyChangedEventHandler handler = PropertyChanged;
            if (null != handler)
            {
                handler(this, new PropertyChangedEventArgs(propertyName));
            }
        }
    }
}